﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PingTest.Service.Interfaces;
using PingTest.Service;

namespace PingTest.StructureMapConfig
{
    public static class Configuration
    {
        public static void Setup()
        {
            StructureMap.ObjectFactory.Initialize(x =>
                {
                    x.For<ISitePingTest>().Use<SitePing>();
                });
        }

        public static T GetInstance<T>()
        {
            return StructureMap.ObjectFactory.GetInstance<T>();
        }
    }
}
